package com.dx.mes.facade.webservice.tx.Msapwork;

/**
 * Created by admin on 2018/4/2.
 */
public class Key {

    private  String wo_id_fk;
    private  String cr_ope_id_fk;

    public String getWo_id_fk() {
        return wo_id_fk;
    }

    public void setWo_id_fk(String wo_id_fk) {
        this.wo_id_fk = wo_id_fk;
    }

    public String getCr_ope_id_fk() {
        return cr_ope_id_fk;
    }

    public void setCr_ope_id_fk(String cr_ope_id_fk) {
        this.cr_ope_id_fk = cr_ope_id_fk;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((wo_id_fk == null) ? 0 : wo_id_fk.hashCode());
        result = prime * result + ((cr_ope_id_fk == null) ? 0 : cr_ope_id_fk.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        Key other = (Key) obj;
        if (wo_id_fk == null) {
            if (other.wo_id_fk != null)
                return false;
        } else if (!wo_id_fk.equals(other.wo_id_fk))
            return false;
        if (cr_ope_id_fk == null) {
            if (other.cr_ope_id_fk != null)
                return false;
        } else if (!cr_ope_id_fk.equals(other.cr_ope_id_fk))
            return false;
        return true;
    }
}
